package com.aidansmeaton.weightmanager;

import android.app.Activity;
import android.graphics.BitmapFactory;
import android.os.Bundle;
import android.widget.ImageView;

/** The picture viewer activity. */
public class PictureViewerActivity extends Activity {
	
	private ImageView photo;
	private String fullPath;
	
	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.picture_viewer);

		photo = (ImageView) findViewById(R.id.photo);
		fullPath = getFilesDir().getAbsolutePath()+"/"+getIntent().getStringExtra("Path");
		photo.setImageBitmap(BitmapFactory.decodeFile(fullPath));

	}
}